const cp = require("child_process");
const { resolve } = require("path");
const arr = ["wu.js", ".gitignore", "n.js"];
for (let i = 0; i < arr.length; i++) {
  cp.exec(
    `npx prettier ${arr[i]} --config peizhi.js`,
    { cwd: resolve(__dirname, "../test_fh") },
    function (error, stdout, stderr) {
      if (!error) {
        console.log(stdout);
        process.exit(0);
      }
      console.log(stderr);
    }
  );
}
